←Select platform

BarcodeData Constructor(BarcodeSymbology,byte[])

Summary

Initializes a new instance of the BarcodeData class with specified symbology and data.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
Public Function New( _ 
   ByVal symbology As Leadtools.Barcode.BarcodeSymbology, _ 
   ByVal data() As Byte _ 
) 
public BarcodeData(  
   Leadtools.Barcode.BarcodeSymbology symbology, 
   byte[] data 
) 
- (instancetype)initWithSymbology:(LTBarcodeSymbology)symbology  
                             data:(nullable NSData *)data 
             
public BarcodeData( 
  BarcodeSymbology symbology, 
  byte[] data 
) 
             
function BarcodeData(  
   symbology , 
   data  
) 
public: 
BarcodeData(  
   Leadtools.Barcode.BarcodeSymbology symbology, 
   array<byte>^ data 
) 

Parameters

symbology
Barcode symbology to use.

data
An array of Byte that specifies the data to use. This value can be null (Nothing in VB).

Remarks

This constructor initializes the BarcodeData member as follows:

Member Value
Symbology symbology
Bounds LogicalRectangle.Empty
RotationAngle 0
BarWidthReduction 0
Byte array inside GetData data (same reference, the data is not copied)
Value ASCII text string representation of data, if this parameter is null, then Value is null too.
Tag null (Nothing in Visual Basic)

To quickly construct a new BarcodeData object with a specific symbology and data as a string value, use BarcodeData(BarcodeSymbology symbology, string value) to construct a default BarcodeData, use BarcodeData().

To create an instance of BarcodeData suitable for writing for a specified symbology, use CreateDefaultBarcodeData.

Example

This example creates a BarcodeData using specified symbology and raw data. Then it writes it to an image.

 

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Barcode Assembly